<template>
	<el-table :data="triales" stripe style="width:500px;margin:0 auto;margin-top:30px" border 
	  :header-cell-style="tableHeaderColor" :height="tableHeight">
	  <el-table-column prop="trialId" label="实习工号" width="100" height="50" header-align="center" align="center" />
	  <el-table-column prop="trialName" label="姓名" width="100" height="50" header-align="center" align="center"/>
	  <el-table-column prop="trialEntryTime" label="试用期开始时间" height="50" width="200" header-align="center" align="center"/>
		<el-table-column prop="trialWorkTime" label="试用期时长" width="100" height="50" header-align="center" align="center"/>
	</el-table>
</template>

<script>
	import qs from 'qs'
	import {ElMessage} from 'element-plus'
	export default{
		data(){
			return{
				triales:[]
			}
		},
		methods:{
			
		},
		created(){
			let that=this
			this.$axios.get("http://localhost:8080/trial/employ1").then(function(ressd){
				that.triales=ressd.data
				console.log(ressd)
				if(ressd.data!=null&&ressd.data!='')
				{
					console.log(ressd)
				}
				else
				{
					console.log("bbbbbs")
				}
			})
		}
	}
</script>

<style>
	.el-table-column{
		text-align:center
	}
	.el-main{
		line-height:50px;
	}
</style>